package java8.timeutil;

import java.time.LocalTime;
import java.time.temporal.ChronoField;
import java.time.temporal.ValueRange;

/**
 * @author Cheng Jun
 * @version 1.0
 * Description:
 * @date 2019/8/13 9:43
 */
public class ChronoFieldStudy {

    public static void main(String[] args) {
        LocalTime time = LocalTime.now().withNano(0);

        ValueRange valueRange = time.range(ChronoField.MINUTE_OF_HOUR);

        int hourByChronoField = time.get(ChronoField.HOUR_OF_DAY);
    }
}
